package com.snowy.hidden.redisdic.impl;

import com.snowy.hidden.redisdic.SysCacheService;
import com.snowy.hidden.user.domain.model.DevConfig;
import com.snowy.hidden.user.mapper.DevConfigMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
public class SysCacheServiceImpl implements SysCacheService {
    @Resource
    private DevConfigMapper devConfigMapper;

    @Override
    @PostConstruct
    public void iniConfigData() {
        List<DevConfig> devConfigList = this.devConfigMapper.selectList(null);
        log.info("==iniConfigData==="+devConfigList.size());
    }
}
